<!DOCTYPE html>
<html>
<head lang="en">

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <link href="../css/thirdParty/bootstrap.min.css" type="text/css" rel="stylesheet" />

    <link rel="stylesheet" type="text/css" href="../css/font/iconfont.css">

    <link href="../css/global.css" type="text/css" rel="stylesheet" />

    <title>基础服务平台</title>
</head>
<body>
<header>
    <ul class="nav navbar-expand-md navbar-dark fixed-top bg-dark ">
        <li class="mr-auto" style="margin-left: 5px"></li>
        <li><a class="navbar-brand logo" href="#">基础服务平台</a></li>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarCollapse">
            <ul class="nav navbar-nav nav-masthead mr-auto">
                <li class="nav-item mr-2 dropdown navbar-dark">
                    <a class="nav-link" id="basicService" href="#" data-toggle="dropdown">基础服务功能</a>
                    <div class="dropdown-menu bg-dark" aria-labelledby="basicServer">
                        <a data-load-page="serviceList" class="dropdown-item text-white ui-dropdown-hover" href="#">
                            <i class="iconfont ibsp-network-management mr-2"></i>服务集群管理</a>
                        <a data-load-page="serverList" class="dropdown-item text-white ui-dropdown-hover" href="#">
                            <i class="iconfont ibsp-network-management mr-2"></i>服务器资源管理</a>
                    </div>
                </li>
                <li class="nav-item mr-2 dropdown navbar-dark">
                    <a class="nav-link" id="monitor" href="#" data-toggle="dropdown">监控服务功能</a>
                    <div class="dropdown-menu bg-dark" aria-labelledby="monitor">
                        <a data-load-page="monitor" class="dropdown-item text-white ui-dropdown-hover" href="#">
                            <i class="iconfont ibsp-real-time-alarm mr-2"></i>监控</a>
                    </div>
                </li>
                <li class="nav-item mr-2 dropdown navbar-dark">
                    <a class="nav-link" id="tool" href="#" data-toggle="dropdown">工具</a>
                    <div class="dropdown-menu bg-dark" aria-labelledby="tool">
                        <a data-load-page="metadata" class="dropdown-item text-white ui-dropdown-hover" href="#">元数据查看</a>
                    </div>
                </li>

            </ul>

            <span style="color:#fff;font-size: 14px">欢迎你</span>
            <div class="nav-item dropdown">
                <a class="nav-link dropdown-toggle text-white" href="#" id="userinfo" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">admin</a>
                <div class="dropdown-menu bg-dark" aria-labelledby="userinfo">
                    <a class="dropdown-item text-white ui-dropdown-hover" href="#">修改密码</a>
                    <a class="dropdown-item text-white ui-dropdown-hover" href="#">退出</a>
                </div>
            </div>
        </div>
    </ul>
</header>
<div class="container-fluid main-content" id="mainContent">

</div>
<div id="log" style="display:none; color:#FFF;"></div>
</body>
<script src="../js/thirdParty/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../js/thirdParty/popper.min.js" type="text/javascript"></script>
<script src="../js/thirdParty/bootstrap.js" type="text/javascript"></script>
<script src="../js/thirdParty/layer/layer.js" type="text/javascript" charset="UTF-8"></script>

<script src="../js/self/basic.js" type="text/javascript"></script>
<script src="../js/self/util.js" type="text/javascript"></script>

<script type="text/javascript">
    $(".dropdown-menu>a").off("click").on("click",function(){
        var $this = $(this), pageName = $this.data("load-page");
        if(pageName != ""){
            /*$main.load("pages/"+pageName+".html");*/
            $mainContainer.load(pageName+".html",function(){
                $(".contextMenu").remove();
                initPage();
            });
        }
    });
    $(".dropdown-menu>a:eq(0)").click();
</script>
</html>